package com.imchen.cms.cmscommon.utils;

import com.imchen.cms.model.Result;
import com.imchen.cms.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author imchen
 * @create: 2019-01-12 10:55
 **/
public class ResultUtil {

    @Autowired
    private LogService logService;

    public static Result makeResult(Object... objects) {

        Object action = objects[0];
        Object arg = objects[1];
        Object data =  objects[2];

        return new Result(Result.SUCCESS_CODE,"action:"+action +" argument:"+arg,data);
    }
}